package controller.Items;

import javafx.beans.property.SimpleStringProperty;

public class teacher {
    private SimpleStringProperty tid;
    private SimpleStringProperty  tname;
    private SimpleStringProperty tsex;
    private SimpleStringProperty toffice;

    public teacher(String id, String name, String sex, String office) {
        tid = new SimpleStringProperty(id);
        tsex = new SimpleStringProperty(sex);
        tname = new SimpleStringProperty(name);
        toffice = new SimpleStringProperty(office);

    }

    public String getTid() {
        return tid.get();
    }

    public SimpleStringProperty tidProperty() {
        return tid;
    }

    public void setTid(String tid) {
        this.tid.set(tid);
    }

    public String getTname() {
        return tname.get();
    }

    public SimpleStringProperty tnameProperty() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname.set(tname);
    }

    public String getTsex() {
        return tsex.get();
    }

    public SimpleStringProperty tsexProperty() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex.set(tsex);
    }

    public String getToffice() {
        return toffice.get();
    }

    public SimpleStringProperty tofficeProperty() {
        return toffice;
    }

    public void setToffice(String toffice) {
        this.toffice.set(toffice);
    }
}
